// 请求地址
const baseUrl = (function() {
	return 'https://pt.xmonecode.com/api';
	// return 'https://kete994.cn1.utools.club';
	// return 'http://hiback-dev.xmonecode.com/api';
    let proxy = 'dev';

    if (proxy) {
        uni.setStorageSync('proxy', proxy);
    } else {
        proxy = uni.getStorageSync('proxy') || 'dev';
    }
    switch (process.env.NODE_ENV) {
        case 'development':
            return `/${proxy}`;
        case 'production':
            return `/api`;
        default:
            return ``;
    }
})();

export { baseUrl };
